import request from '@/utils/request'
// cv工程师

let getClassList = async (params) => {
    let result = await request({
        method: 'GET',
        url: "/class/getClassList",
        params: {
            ...params
        }
    })
    return result
}

// 获得班级列表 不分页版本 /class/getClassListUnPage

let getClassListUnPage = async () => {
    let result = await request({
        method: 'GET',
        url: "/class/getClassListUnPage"
    })
    return result
}

let delClassById = async (params) => {
    let result = await request({
        method: 'POST',
        url: "/class/delClassById",
        data: {
            ...params,
        }
    })
    return result
}

let addClass = async (params) => {
    let result = await request({
        method: 'POST',
        url: "/class/addClass",
        data: {
            ...params,
        }
    })
    return result
}

let updateClass = async (params) => {
    let result = await request({
        method: 'POST',
        url: "/class/updateClass",
        data: {
            ...params,
        }
    })
    return result
}

let filterNameList = async (params) => {
    let result = await request({
        method: 'POST',
        url: "/class/filterNameList",
        data: {
            ...params,
        }
    })
    return result
}


export default {
    getClassListUnPage,
    getClassList,
    delClassById,
    addClass,
    updateClass,
    filterNameList
}